package org.jeecg.common.exception;

/**
 * @author lixingxing
 */
public class JeecgBootException extends RuntimeException {
    private static final long serialVersionUID = 1L;

    private int code = 500;

    public JeecgBootException(String message) {
        super(message);
    }

    public JeecgBootException(Throwable cause) {
        super(cause);
    }

    public JeecgBootException(String message, Throwable cause) {
        super(message, cause);
    }

    public JeecgBootException(int code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public int getCode() {
        return code;
    }
}
